package com.chpro.finance.logmanager.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chpro.finance.logmanager.dao.DiaryDao;
import com.chpro.finance.logmanager.entity.Diary;
import com.chpro.finance.logmanager.service.DiarySerivce;
import com.chpro.orm.hibernate.DaoBase;
import com.chpro.orm.hibernate.ServiceBaseImpl;

@Service(value="diaryServiceImpl")
public class DiaryServiceImpl extends ServiceBaseImpl<Diary> implements DiarySerivce {

	private DiaryDao diaryDao;
	
	@Resource(name="diaryDaoImpl")
	public void setDiaryDao(DiaryDao diaryDao) {
		this.diaryDao = diaryDao;
	}

	@Override
	public DaoBase<Diary> getDao() {
		return diaryDao;
	}

}
